import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'

// vant组件库
import './utils/vant'
import './styles/base.less'
// rem适配
import 'amfe-flexible'
import moment from 'moment'

// 中文
moment.locale('zh-cn')

// 全局过滤器  参数1 过滤器名字  参数2：过滤器函数
Vue.filter('fromNow', (time) => moment(time).fromNow())
Vue.config.productionTip = false
Vue.use(Vant)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
